package com.ifood.common.core.domain.entity;

import com.ifood.common.annotation.Excel;
import com.ifood.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品分类对象 food_product_category
 *
 * @author ifood
 * @date 2024-01-14
 */
public class FoodProductCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("主键")
    private Long categoryId;

    /**
     * 类目名字
     */
    @Excel(name = "类目名字")
    @ApiModelProperty("类目名字")
    private String categoryName;

    /**
     * 类目编号
     */
    @Excel(name = "类目编号")
    @ApiModelProperty("类目编号")
    private Long categoryType;

    /**
     * 是否删除0默认1删除
     */
    @ApiModelProperty("类目编号")
    private String delFlag;

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryType(Long categoryType) {
        this.categoryType = categoryType;
    }

    public Long getCategoryType() {
        return categoryType;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("categoryId", getCategoryId())
                .append("categoryName", getCategoryName())
                .append("categoryType", getCategoryType())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
